<?php
namespace Modules\Frontend\Controllers;

class UserWalletAppointmentController extends ControllerBase {
  public function transferAction() {
    return $this -> returnByJson($this -> user -> getSharedFactory() -> getFacade('Wallet') -> transferByFieldsIndexAndToken(
      \Components\User\Sha\Wallet\Constants::APPOINTMENT,
      $this -> request -> getQuery('token', 'string', null, true),
      $this -> request -> getPut()
    ));
  }
}
